#ifndef FILELISTVIEW_H
#define FILELISTVIEW_H

#include <QTableView>

class FileListModel;
class FileListView : public QTableView
{
    Q_OBJECT
public:
    explicit FileListView(QWidget *parent = 0);
    void addFileList(const QStringList &filelist);
    void addDirectory(const QString &path);
    void deleteSelectedFiles();

signals:
    void signalLanguageChanged();
    void signalFileSelectionChanged(bool hasFile, bool hasSelection);

public slots:

private slots:
    void onSelectionChanged(const QItemSelection & newSelection, const QItemSelection & oldSelection);

private:
    FileListModel *m_model;
};

#endif // FILELISTVIEW_H
